#ifndef _CTASK_H_
#define _CTASK_H_

#ifdef __cplusplus
extern "C" {
#endif
#include <taskMgr.h>

typedef struct _ctask_ {
	//attribute
    int tsk_id;

	//action
	int(*run)(struct _ctask_*);
} CTask;

int construct_task(CTask* thes, int priority, TASK_ENTRY_FUN entry, void* tsk_param, const char* tsk_name);

#ifdef __cplusplus
}
#endif
#endif
